package pack0812;


import java.util.Arrays;

public class DemoA {
    public static void main(String[] args) {
        int[] array ={12,85,41,55,52,82,52,1,41,86,53,5};
        /*for(int j = 0;j<array.length-1;j++){
            for(int i = 0;i<array.length-1-j;i++){
                if(array[i]>array[i+1]){
                    int m = array[i];
                    array[i] = array[i+1];
                    array[i+1] = m;
                }
            }
        }*/
        Arrays.sort(array);//JAVA写好的冒泡排序法
        for(int i = 0;i<array.length;i++){
            System.out.print(array[i]+"\t");
        }
    }
}
